<?php
$start = microtime(true);
error_reporting(E_ALL);
header('Content-type: text/plain');
define ('DEBUG', true);
#define ('THROW_EXCEPTION_ON_DESTRUCT', true);
class DestroyException extends Exception {}

define('ROOT_PATH', dirname(__FILE__).'/');
define('TESTS_PATH', 'tests/');

require_once(ROOT_PATH . 'lib/include.php');

define('TESTS', true);
switch ($_GET['id'])
{
    case 'mysqlitest':
        require(TESTS_PATH . 'mysqliTest.php');
        break;
    case 'mappergetall':
        require(TESTS_PATH . 'Mapper-getAll.php');
        break;
}

echo "\n".(microtime(true) - $start)."\n";